WRITE MEMBLOCK DWORD

This command will write a dword into the specified location of the memblock.

  Syntax
WRITE MEMBLOCK DWORD Memblock Number, Position, DWord
  Parameters
Memblock Number
Integer
The memblock number must exist or the command will fail
Position
Integer
The Position value is specified in bytes
DWord
Dword
The DWord value must be a value between 0 and 4294967295

  Returns

This command does not return a value.

  Description

A DWord is the term for a datatype consisting of four bytes. The memblock must exist or the command will fail. The Position value is specified in bytes. The DWord value must be a value between 0 and 4294967295. The parameters must be specified using integer values.

  Example Code
MemblockNumber=1
MAKE MEMBLOCK MemblockNumber,1024
WRITE MEMBLOCK DWORD MemblockNumber, 0, 4294967295
cls
print "MEMBLOCK EXPRESSION DATA"
if MEMBLOCK EXIST(MemblockNumber)=1
print "memblock:";MemblockNumber
print "exist:";MEMBLOCK EXIST(MemblockNumber)
print "ptr:";GET MEMBLOCK PTR(MemblockNumber)
print "size:";GET MEMBLOCK SIZE(MemblockNumber)
print "dword:";MEMBLOCK DWORD(MemblockNumber, 0)
endif
rem Delete memblocks
if MEMBLOCK EXIST(MemblockNumber)=1 then DELETE MEMBLOCK MemblockNumber
do
loop
end
  See also

MEMBLOCKS Commands Menu
Index